<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>欢迎登录为尔后台管理系统</title>
    <link href="{{asset('admin/css/style.css')}}" rel="stylesheet" type="text/css"/>
    <link rel="stylesheet" type="text/css" href="{{asset('admin/js/toastr/toastr.min.css')}}">

    <script src="{{asset('admin/js/jquery.min.js')}}"></script>
    <script src="{{asset('admin/js/toastr/toastr.min.js')}}"></script>
    <script src="{{asset('admin/js/cloud.js')}}"></script>
    <script language="javascript">
        $(function () {
            $('.loginbox').css({'position': 'absolute', 'left': ($(window).width() - 692) / 2});
            $(window).resize(function () {
                $('.loginbox').css({'position': 'absolute', 'left': ($(window).width() - 692) / 2});
            })
        });
    </script>
</head>
<body style="background-color:#1c77ac; background-image:url({{asset('admin/imgs/light.png')}}); background-repeat:no-repeat; background-position:center top; overflow:hidden;">
<div id="mainBody">
    <div id="cloud1" class="cloud"></div>
    <div id="cloud2" class="cloud"></div>
</div>
<div class="logintop">
    <span>欢迎登录为尔后台管理系统</span>
    <ul>
        <li><a href="#">回首页</a></li>
    </ul>
</div>
<div class="loginbody">
    <span class="systemlogo"></span>
    <div class="loginbox">
        <form action="{{route('admin.login-act')}}" method="POST" id="login">
            {{csrf_field()}}
            <ul>
                <li><input name="username" type="text" class="loginuser" placeholder="用户名"/></li>
                <li><input name="userpass" type="password" class="loginpwd" placeholder="密码"/></li>
                <li>
                    <img src="{{route('coms.login-code')}}" onclick="refreshCode(this)" alt="点击刷新"
                         class="loginyzm-img"/>
                    <input name="yzm" class="loginyzm-input" type="text" placeholder="验证码"/>
                    <input type="submit" class="loginbtn" value="登录"/>
                </li>
            </ul>
        </form>
    </div>
</div>
<div class="loginbm">版权所有 2016 Weier Chang Ying</div>
<script>
    {{-- 刷新验证码 --}}
    function refreshCode(obj) {
        obj.src = "{{route('coms.login-code')."?code="}}" + Math.random();
    }
</script>
@include('errors.toast')
</body>
</html>
